package com.wx.mapper;

import com.wx.common.MyMapper;
import com.wx.entity.SysMenu;
import com.wx.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface SysRoleMenuMapper extends MyMapper<SysRoleMenu> {

    int batchDeleteByRoleId(String roleId);

    List<SysMenu> getMenuByRoleIds(@Param("roleIds") List<String> roleIds);

    List<SysRoleMenu> selectRoleMenuByRoleId(String roleId);

    int batchInsert(@Param("list") List<SysRoleMenu> roleMenuList);

    List<SysMenu> getOwnMenuModule(@Param("roleIds") List<String> roleIds);
}